package com.whw.fy.mapper;

import com.whw.fy.entity.Emergency;
import java.util.List;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

@Mapper
public interface EmergencyMapper {
    int deleteByPrimaryKey(Integer emergencyId);

    int insert(Emergency record);

    int insertSelective(Emergency record);

    Emergency selectByPrimaryKey(Integer emergencyId);

    int updateByPrimaryKeySelective(Emergency record);

    int updateByPrimaryKey(Emergency record);

    List<Emergency> selectAll();

    int batchInsert(@Param("list") List<Emergency> list);

    List<Emergency> selectByEmergencyStudentId(@Param("emergencyStudentId")Integer emergencyStudentId);

    List<Emergency> selectAllByEmergencyClazzIdAndEmergencyStudentIdAndEmergencyClazzSkcd(@Param("emergencyClazzId")Integer emergencyClazzId,@Param("emergencyStudentId")Integer emergencyStudentId,@Param("emergencyClazzSkcd")Integer emergencyClazzSkcd);

    List<Emergency> selectByEmergencyClazzIdAndEmergencyClazzSkcd(@Param("emergencyClazzId") Integer emergencyClazzId, @Param("emergencyClazzSkcd") Integer emergencyClazzSkcd);

    List<Emergency> selectAllByEmergencyMold(@Param("emergencyMold")Integer emergencyMold);


}
